<?php
/* @var $this CompanyController */
/* @var $model Company */

$this->breadcrumbs=array(
	'Companies'=>array('index'),
	$model->title=>array('view','id'=>$model->id),
	'repassword',
);
 
?>

<h1>修改密码<span style="color: red;font-size: 12px;"> <?php echo empty($message)?'':'---'.$message; ?></span></h1>
 

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'company-form',
    'enableAjaxValidation'=>true, 
)); ?> 

    <p class="note"><span class="required">*</span> 是必填内容.</p>  
    <div class="row">
        <?php echo CHtml::label("旧密码",false,array('required'=>true));  ?>
        <?php echo $form->passwordField($model,'oldpassword',array('size'=>60,'maxlength'=>128,'value'=>$newarray['oldpassword'],)); ?>
        <?php echo $form->error($model,'oldpassword'); ?>
    </div>
 
      <div class="row">
        <?php echo CHtml::label("新密码",false,array('required'=>true));  ?>
        <?php echo $form->passwordField($model,'newpassword',array('size'=>60,'maxlength'=>128,'value'=>$newarray['newpassword'],)); ?>
        <?php echo $form->error($model,'newpassword'); ?>
    </div>

      <div class="row">
        <?php echo CHtml::label("确认密码",false,array('required'=>true));  ?>
        <?php echo $form->passwordField($model,'respassword',array('size'=>60,'maxlength'=>128,'value'=>$newarray['respassword'],)); ?>
        <?php echo $form->error($model,'respassword'); ?>
    </div>
    

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? '新增' : '修改',array('class'=>'subButton')); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->